package page;

/**
 * Created by as on 2016/11/16.
 */
public class OOP {
    public static void main(String[] args){
        //book();
        //combook();
        superBook();
    }

     static void book()
     {
        Book book1 = new Book();
        book1.name = "和平的世界";
        book1.author = "何峰";
        book1.price = 355;

        book1.show();
       // System.out.print("折扣价：");
       // System.out.print( book1.sellPrice(0.9));
    }

    static void combook()
    {
        ComBook comBook = new ComBook();
        comBook.name    = "水浒传";
        comBook.price   = 355;
        comBook.author  = "冯小刚";
        comBook.hasDisk = true;
        comBook.show();
    }

    static void superBook()
    {
        Book book = new Book("大呼故事", 99.00, "哈哈");
        book.show();

        Book book1 = new Book();
        book1.show();
    }
}
